package com.bw.module_cinema.model.state

import com.bw.lib_common.base.IState
import com.bw.module_cinema.model.entity.VideoByTypeIdEntity
import com.bw.module_cinema.model.entity.VideoTypeEntity

/**
 * 状态
 */
sealed class CinemaState:IState {
    /**
     * 加载中
     */
    object Loading:CinemaState()

    /**
     * 空数据
     */
    object Empty:CinemaState()

    /**
     * 成功
     */
    data class Success(val data: List<VideoTypeEntity>): CinemaState()
    data class VideoSuccess(val data: List<VideoByTypeIdEntity>): CinemaState()

    /**
     * 失败
     */
    data class Error(val message:String): CinemaState()

    /**
     * 初始化
     */
    object Init:CinemaState()

}